app.service('balanceHistoryService',['$q','utilService',function($q,utilService){

    //查找储值记录头部累计信息
    this.findHeaderData=function($scope){
        var deferred = $q.defer();
        utilService.get({
            url:$scope.app.domain + 'balance/data'
        }).then(function(response){
            deferred.resolve(response.data);
        },function(e){
            console.error(e);
            deferred.reject("连接服务器出错");
        });
        return deferred.promise;
    };
}]);